package assg.funnycells.util;

import java.io.*;
import java.net.*;

public class ChemOperations {

    public static void sendMessage(PrintWriter out, String[] arr) {
	for(String str: arr) {
	    Logger.getDefaultLogger().debug("* writing: " + str);
	    out.println(str);
	}
	out.println("");
	out.flush();
    }

    public static void sendMessage(Socket soc, String[] arr) throws Exception {
	PrintWriter out = new PrintWriter(soc.getOutputStream());
	sendMessage(out, arr);
    }

}